Skip to content

ci: print the shard build step's peak memory sample - #12709

Merged
EffortlessSteven merged 1 commit into
mainfrom
claude/shard-memory-trace-fix
Nov 2, 2026
Merged

EffortlessSteven merged 1 commit into
mainfrom
claude/shard-memory-trace-fix

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Governing issue or accepted claim: #12703
Acceptance delta (one sentence): The memory trace added in #12704 prints its peak sample instead of an empty line.

In #12704 the EXIT trap used sort -t= -k2 -n -r, which the runner's sort rejected (separator must be exactly one character long), so "peak memory sample:" was empty in all four shards. It never changed the step result. This swaps it for an awk max over used_mb; I checked the trap body locally against a three-line sample and it prints the 9100 MB line. Workflow text only, no change to builds or tests.


Generated by Claude Code

sort -t= was rejected on the runner, leaving the line empty. Use awk.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvmPmr2V8kCE8LReycVLHP
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 52 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 147 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 06a84880-f2bf-4c13-add6-c51d91e743ce
Commits

Reviewing files that changed from the base of the PR and between be9d00d and a548a39.

Files selected for processing: 2
  • .github/workflows/rust-test-shards.yml
  • changelog.d/12704-shard-memory-trace-peak-line.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copy link
Copy Markdown
Member Author

Review of record, head a548a39

Angles: correctness of the trap body, fail-closed, scope. One-line workflow change (sort -t= to an awk max), checked locally against a three-line sample, and exercised on the hosted run 41532991952: Result green, shard 2 now prints 22:36:36 used_mb=14832 available_mb=1150. The trap still cannot change the step's exit status (no exit, bash -e governs the build commands). No blocking findings. The first run on this head (41532938002) failed only because merge-ready was applied while the PR was Draft; the label cycle replaced it.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants